package com.front.managementfront.fegin;

import com.hkts.management.common.utils.Result;
import com.hkts.management.common.vo.UserOderNumVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
import java.util.Map;

/**
 * @ClassNameOrderAppServiceClient
 * @Description
 * @Author yck
 * @Date2021-07-27 14:25
 * @Version V1.0
 **/
@FeignClient(value="management-order",configuration = FeignHeadersInterceptor.class)
public interface OrderAppServiceClient {
    @GetMapping( value = "/order/hktsOrder/getOderNumByUserIds/{ids}")
    public Result<List<UserOderNumVo>> getOderNumByUserIds(@PathVariable String ids);
    @GetMapping("/order/hktsContract/getPriceAndCarCode/{id}")
    Result<Map<String,Object>> getPriceAndCarCode(@PathVariable String id);

    @GetMapping("/order/comment/{driver}")
    void test2(@PathVariable String driver);
}
